import request from '@/utils/request'

export function list(data) {
  return request({
    url: '/iot/iot/list',
    method: 'post',
    data: data
  })
}

export function realStatusList(data) {
  return request({
    url: '/iot/iot/realStatusList',
    method: 'post',
    data: data
  })
}
export function realStatusSelectList(data) {
  return request({
    url: '/iot/iot/realStatusSelectList',
    method: 'post',
    data: data
  })
}
export function add(data) {
  return request({
    url: '/iot/iot/add',
    method: 'post',
    data: data
  })
}
export function edit(data) {
  return request({
    url: '/iot/iot/edit',
    method: 'post',
    data: data
  })
}
export function changeStatus(data) {
  return request({
    url: '/iot/iot/changeStatus',
    method: 'post',
    data: data
  })
}
export function remove(data) {
  return request({
    url: '/iot/iot/delete',
    method: 'post',
    data: data
  })
}
export function send(data) {
  return request({
    url: '/iot/iot/sendMqttMsg',
    method: 'post',
    data: data
  })
}
export function getInfo(data) {
  return request({
    url: '/iot/iot/' + data,
    method: 'get'
  })
}
export function cleanTestData(data) {
  return request({
    url: '/iot/iot/cleanTestData',
    method: 'post',
    data: data
  })
}

